package com.example.dg.mapper;

import com.example.dg.entity.Entity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Bean;

import java.util.List;

@Mapper
public interface DgMapper {
    /**获取蛋糕信息*/
    public List<Entity> getAllDg(Entity entity);

    /**根据id获取学生对象*/
    public Entity getDgById(String id);
    /**添加*/
    public int Add(Entity entity);

}
